<%@ page import="gdepot.AccountBank" %>
<%@ page import="gdepot.AccountBank" %>



<div class="fieldcontain ${hasErrors(bean: accountBankInstance, field: 'cellphone', 'error')} ">
	<label for="cellphone">
		<g:message code="accountBank.cellphone.label" default="Cellphone" />
		
	</label>
	<g:textField name="cellphone" pattern="${accountBankInstance.constraints.cellphone.matches}" value="${accountBankInstance?.cellphone}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: accountBankInstance, field: 'certificateType', 'error')} ">
	<label for="certificateType">
		<g:message code="accountBank.certificateType.label" default="Certificate Type" />
		
	</label>
	<g:select name="certificateType" from="${accountBankInstance.constraints.certificateType.inList}" value="${accountBankInstance?.certificateType}" valueMessagePrefix="accountBank.certificateType" noSelection="['': '']"/>

</div>

<div class="fieldcontain ${hasErrors(bean: accountBankInstance, field: 'idCard', 'error')} ">
	<label for="idCard">
		<g:message code="accountBank.idCard.label" default="Id Card" />
		
	</label>
	<g:textField name="idCard" maxlength="20" value="${accountBankInstance?.idCard}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: accountBankInstance, field: 'status', 'error')} required">
	<label for="status">
		<g:message code="accountBank.status.label" default="Status" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="status" from="${accountBankInstance.constraints.status.inList}" required="" value="${accountBankInstance?.status}" valueMessagePrefix="accountBank.status"/>

</div>

<div class="fieldcontain ${hasErrors(bean: accountBankInstance, field: 'isPrimary', 'error')} ">
	<label for="isPrimary">
		<g:message code="accountBank.isPrimary.label" default="Is Primary" />
		
	</label>
	<g:checkBox name="isPrimary" value="${accountBankInstance?.isPrimary}" />

</div>

<div class="fieldcontain ${hasErrors(bean: accountBankInstance, field: 'bankCardNo', 'error')} required">
	<label for="bankCardNo">
		<g:message code="accountBank.bankCardNo.label" default="Bank Card No" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="bankCardNo" maxlength="20" required="" value="${accountBankInstance?.bankCardNo}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: accountBankInstance, field: 'fullName', 'error')} required">
	<label for="fullName">
		<g:message code="accountBank.fullName.label" default="Full Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="fullName" maxlength="20" required="" value="${accountBankInstance?.fullName}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: accountBankInstance, field: 'createdDate', 'error')} ">
	<label for="createdDate">
		<g:message code="accountBank.createdDate.label" default="Created Date" />
		
	</label>
	<g:datePicker name="createdDate" precision="day"  value="${accountBankInstance?.createdDate}" default="none" noSelection="['': '']" />

</div>

<div class="fieldcontain ${hasErrors(bean: accountBankInstance, field: 'modifiedDate', 'error')} ">
	<label for="modifiedDate">
		<g:message code="accountBank.modifiedDate.label" default="Modified Date" />
		
	</label>
	<g:datePicker name="modifiedDate" precision="day"  value="${accountBankInstance?.modifiedDate}" default="none" noSelection="['': '']" />

</div>

<div class="fieldcontain ${hasErrors(bean: accountBankInstance, field: 'account', 'error')} required">
	<label for="account">
		<g:message code="accountBank.account.label" default="Account" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="account" name="account.id" from="${gdepot.Users.list()}" optionKey="id" required="" value="${accountBankInstance?.account?.id}" class="many-to-one"/>

</div>

<div class="fieldcontain ${hasErrors(bean: accountBankInstance, field: 'bank', 'error')} required">
	<label for="bank">
		<g:message code="accountBank.bank.label" default="Bank" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="bank" name="bank.id" from="${gdepot.Bank.list()}" optionKey="id" required="" value="${accountBankInstance?.bank?.id}" class="many-to-one"/>

</div>

